home *** CD-ROM | disk | FTP | other *** search
/ NeXT Education Software Sampler 1992 Fall / NeXT Education Software Sampler 1992 Fall.iso / Programming / Source / WAIS / bin / check-sources next >
Encoding:
Text File  |  1992-02-02  |  637 b   |  25 lines

  1. #!/bin/sh
  2.  
  3. # Script for checking all source in a directory to see if they are alive.
  4. # This is useful for a system administrator.  If an advertized server is
  5. # down consistently, please notify the maintainer and the maintainer of the
  6. # directory of servers that the source came from.  (the master directory of
  7. # servers is maintained by brewster@think.com)
  8. # -brewster
  9.  
  10. if (test $# -ne 1)
  11. then
  12.     echo "usage: $0 <wais-source-directory>"
  13.     echo "  Checks all sources in the directory <wais-source-directory>"
  14.     echo "  to see if they are responding to WAIS requests."    
  15.     exit 1
  16. fi
  17.  
  18. for s in $1/*.src
  19. do
  20.      waisq -t -c $1 `basename $s`
  21. done
  22.  
  23.  
  24.  
  25.